#!/bin/bash
statefulsetStartOrder=`echo $HOSTNAME | awk -F '-' '{print $NF}'`
if [[ $statefulsetStartOrder -eq 0 ]]; 
then
	/u01/oracle/container-scripts/createWLSDomain.sh
else
	export MANAGED_NAME="MS${statefulsetStartOrder}"
        /u01/oracle/container-scripts/startManagedServer.sh
fi

